package com.toonan.system.model;

import java.util.Date;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import com.toonan.core.matatype.impl.BaseModel;

/**
 * <p>
 * 菜单模块-角色关联表
 * </p>
 *
 * @author 陈骑元
 * @since 2018-10-02
 */
@Document(collection="sys_role_menu") 

public class RoleMenu extends BaseModel {

    private static final long serialVersionUID = 1L;

    /**
     * 角色与菜单关联编号
     */
    @Id
    private String roleMenuId;
    /**
     *  角色流水号
     */
    private String roleId;
    /**
     * 功能模块流水号
     */
    private String menuId;
    /**
     * 权限类型 1 经办权限 2管理权限
     */
    private String grantType;
    /**
     * 创建人ID
     */
    private String createBy;
    /**
     * 创建时间
     */
    private Date createTime;


    public String getRoleMenuId() {
        return roleMenuId;
    }

    public void setRoleMenuId(String roleMenuId) {
        this.roleMenuId = roleMenuId;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getMenuId() {
        return menuId;
    }

    public void setMenuId(String menuId) {
        this.menuId = menuId;
    }

    public String getGrantType() {
        return grantType;
    }

    public void setGrantType(String grantType) {
        this.grantType = grantType;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }


    @Override
    public String toString() {
        return "RoleMenu{" +
        ", roleMenuId=" + roleMenuId +
        ", roleId=" + roleId +
        ", menuId=" + menuId +
        ", grantType=" + grantType +
        ", createBy=" + createBy +
        ", createTime=" + createTime +
        "}";
    }
}
